<%@ page import="ro.gateway.aida.servlet.UploadServlet"%>

<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>

<%

     String screen = ( String ) request.getAttribute(UploadServlet.SCREEN);

     String ctx = request.getContextPath();

%>

<head>

    <title><trans:showPageMessage label="title" /></title>

    <link rel="stylesheet" href="../alf.css" type="text/css">

</head>

<body>

<br>

<br>

<% if (UploadServlet.SCREEN_UPLOAD.equals(screen)) { %>

<table align="center" width="90%" border="0" cellspacing="1" cellpadding="5" background=<%=ctx%>/images/pixelbgtable.gif>

     <form method="POST" action="<%=ctx%>/misc/upload" name="theform"

     enctype="multipart/form-data">



     <tr bgcolor="#FFFFFF">

     <td class="text_search" align="right">

          File:

     </td>

     <td class="text_search">

          <input type="file" name="zafile" />

     </td>

     </tr>



     <tr bgcolor="#FFFFFF">

     <td colspan="2" class="text_search">

          <input type="submit" value="Submit" />

     </td>

     </tr>



     </form>

</table>

<% } else { %>

     <script language="javascript">

          opener.after_upload(<%=(request.getParameter("done") != null) ? "1" : "0"%>);

          window.close();

     </script>

<% } %>

</table>

<br><br>

</body>

</html>